//
//  HomeFirstCell.m
//  DuiTang--
//
//  Created by Lina Zhang on 16/10/8.
//  Copyright © 2016年 jpw. All rights reserved.
//
#import "DWHomeItem.h"
#import "HomeFirstCell.h"
#import <UIImageView+WebCache.h>
@interface HomeFirstCell ()
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UIImageView *iconImageView;
@end
@implementation HomeFirstCell

- (void)setFrame:(CGRect)frame
{
    frame.size.height -= 7;
    [super setFrame:frame];
}
-(void)setItem:(DWHomeItem *)item{
    _item = item;
   self.titleLabel.text = item.titleText;
    [self.iconImageView sd_setImageWithURL:[NSURL URLWithString:item.image_url] placeholderImage:[UIImage imageNamed:@"gift_overdue"]];
}
@end
